<template>
    <el-main>
        <el-main class="ep-body">
             <epl-top-bar showCompany :datas="{formData:form}" companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP">
                <ep-button size="small" name="打印"></ep-button>
                <el-button size="small" @click="clear" >刷新</el-button>
            </epl-top-bar>
            <epl-userMessage dataType="company" idCount="2" :panel="panel">
                <epl-userMessageItem title="欠费总金额" :sum="form.sum.value">
                    <epl-column label="欠费月数" :value="' '+form.months.value"></epl-column>                    
                </epl-userMessageItem>
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>调整信息</ep-title>
                <el-form :model="form" :rules="rules" ref="form">
                    <el-row>
                        <ep-input colspan="8" name="sum" :property="form.sum" p="H" :datas="{formData: form}"></ep-input>
                        <ep-input colspan="8" name="months" :property="form.months" p="H" :datas="{formData: form}"></ep-input>
                        <ep-input colspan="8" name="aae180ThisYear" :property="form.aae180ThisYear" p="H" :datas="{formData: form}"></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                            <ep-select colspan="8" label="核销类型" name="bab010" :property="form.bab010"
                                    placeholder="请选择核销类型" p="H" :datas="{formData:form}" codetype="BAB010"></ep-select>
                            <ep-select colspan="8" label="核销险种" name="aae140" :property="form.aae140" codetype="AAE140"
                                    placeholder="请选择核销险种" p="R" :datas="{formData: form}" SelectFilterData="aaa102 = '110'"></ep-select>
                            <ep-dateTime colspan="8" label="欠费时间" name="aae003" :property="form.aae003" p="E" 
                                    :datas="{formData:form}" format="yyyyMM"></ep-dateTime >
                    </el-row>
                    <el-row :gutter="10">
                        <ep-textarea :rows="3" colspan="24" label="备注" name="bae582" :property="form.bae582"
                            p="E" :datas="{formData: form}" placeholder="请输入备注"></ep-textarea>
                    </el-row>
                </el-form>
                <ep-title>待核销信息</ep-title>
                <el-row>
                    <ep-table :data="tableData" :pager="20" border style="width: 100%;" rowDbClick >
                        <ep-table-column editor="index" width="85"  header="序号"></ep-table-column>                            
                        <ep-table-column sortable editor="checkbox" width="120" name="checked" header="选择"></ep-table-column>  
                        <!-- <ep-table-column sortable editor="text"   name="aae031" header="单位管理码"></ep-table-column> -->
                        <ep-table-column sortable editor="text" width="120" name="aae180" header="险种"></ep-table-column>
                        <ep-table-column sortable editor="text" width="160" name="aae002" header="费款所属期"></ep-table-column>
                        <ep-table-column sortable editor="text" width="135" name="aae003" header="缴费类型"></ep-table-column>
                        <ep-table-column sortable editor="text" width="135" name="aae079" header="个人部分"></ep-table-column>
                        <ep-table-column sortable editor="text" width="135" name="aae020" header="单位部分"></ep-table-column>
                        <ep-table-column sortable editor="text" width="135" name="aae058" header="总金额"></ep-table-column>
                    </ep-table>
                </el-row>
                    <div style="margin: 15px 0;"></div>
                        <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                        :datas="{formData: form,tableData:tableData,panel:panel}" name="保存"></ep-saveButton>
                </el-row>
            </el-card>
        </el-main>
    </el-main>
</template>




<script src="../js/CpArrearsCancelJS.js"></script>
